From 2f2d76fef55719290fe048048ef37b129fe8661b Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 19 Apr 2024 20:52:54 -0700
Subject: feat(badges): show badge id on dev

---
 src/routes/user/[user]/badges/+page.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index b3483a66..505f32e4 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -22,7 +22,7 @@
 	import FallbackBadge from '$lib/FallbackBadge.svelte';
 	import { page } from '$app/stores';
 	import type { UserPreferences } from '$lib/Database/userPreferences.js';
-	import { browser } from '$app/environment';
+	import { browser, dev } from '$app/environment';
 	// import { io } from 'socket.io-client';
 	import Tooltip from '$lib/Tooltip/LinkedTooltip.svelte';
 	import BadgePreview from '$lib/BadgeWall/BadgePreview.svelte';
@@ -769,7 +769,7 @@
 															if (hiddenInput instanceof HTMLInputElement)
 																hiddenInput.value = badge.hidden ? 'Hidden' : 'Shown';
 														}}
-														title={`${
+														title={`${dev ? `${badge.id}\n` : ''}${
 															badge.time
 																? $locale().dateFormatter(databaseTimeToDate(badge.time))
 																: ''
-- 
cgit v1.2.3

